package com.person.service.impl;

import cn.hutool.core.util.IdUtil;
import com.person.dto.UserDto;
import com.person.mapper.UserMapper;
import com.person.pojo.User;
import com.person.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User inquireTEL(String phone) {
        User user= userMapper.selectTEL(phone);
        return user;
    }

    @Override
    public void addUser(UserDto userDto) {


        userMapper.insertUser(userDto);
    }
}
